<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('表格传值给父页面')" />
</head>
<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse" style="display: none;">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li><input id="id" name="id" th:value="${orderId}" /></li>
							<li><a class="btn btn-primary btn-rounded btn-sm"
								onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm"
								onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			<div class="col-sm-12 select-table table-striped">

				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script th:inline="javascript">
    var prefix = ctx + "Order/shoppingOrder";

					$(function() {
						var options = {
							url : prefix + "/goodsList",
							showSearch : false,
							showRefresh : false,
							showToggle : false,
							showColumns : false,
							columns : [ 
							{
								field : 'remarks',
								title : '商品名称'
							}, {
								field : 'xiaofei',
								title : '图片'
							}, {
								field : 'jine',
								title : '单价'
							}, {
								field : 'chuku',
								title : '数量'
							}, {
								field : 'returnMoney',
								title : '总价'
							} ]
						};

						$.table.init(options);
					});
					
					function submitHandler() {
				    	   var index = parent.layer.getFrameIndex(window.name);
				           parent.layer.close(index);//关闭当前页
					    }
				</script>
</body>
</html>